package models;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

import play.data.validation.Required;
import play.db.jpa.Model;

@Entity
public class MoyenEchelle extends Model{
	
	@Required
	@Column(unique=true)
	public String id_moyenechelle;

	@Required
	public String nom;
	
	public MoyenEchelle(String nom){
		this.nom=nom;
	}
	
	public String toString(){
		return this.nom;
	}
}
